package com.ldk.springboot2021.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("tb_door")
public class Door {
    @TableId(type = IdType.AUTO)
    private Integer doorId;
    @TableField("door_name")//映射到数据库
    private String doorName;
    private String tel;
    @TableField("create_time")
    private Date createTime;
    @TableField("modify_time")
    private Date modifyTime;
//    @TableField(exist = false)//在数据库表中不存在的字段，在对象中出现，可以使用这个注解
//    private Integer type;
}
